package com.sky.service;

import com.sky.dto.CategoryDTO;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.result.PageResult;
import com.sky.result.Result;

/**
* @author MrWang
* @description 针对表【category(菜品及套餐分类)】的数据库操作Service
* @createDate 2023-10-18 18:06:25
*/
public interface CategoryService extends IService<Category> {

    Result categoryList(CategoryPageQueryDTO categoryPageQueryDTO);

    Result saveCategory(CategoryDTO categoryDTO);

    Result deleteById(String id);

    Result updateCategory(CategoryDTO categoryDTO);

    Result updateStatus(String status, String id);

    Result getCategoriesByType(String type);


    //C端
    Result getCategoryListByType(String type);

}
